[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
DEFAULT variable is filled with default value if it's value is NIL:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Syntax:
~~~~~~~

  DEFAULT <Var1> := <Value1> [, <VarN> := <ValueN> ]

Description:
~~~~~~~~~~~~
If the variable <Var1> == NIL, the variable <Var1> is assigned the <Value1>.
This is performed for all variables and their values.

Example:
~~~~~~~~

  DEFAULT A:=11, B:=22, C:=33

can be rewritten:

  IF A==NIL
    A:=11
  END
  IF B==NIL
    B:=22
  END
  IF C==NIL
    C:=33
  ENDIF


Source file is Object.ch

See Also: FILL EMPTY STORE VALUE
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson